]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Fix activation of search results
authorColin Walters <walters@verbum.org>
Thu, 11 Aug 2011 14:26:14 +0000 (10:26 -0400)
committerColin Walters <walters@verbum.org>
Thu, 11 Aug 2011 14:26:14 +0000 (10:26 -0400)
The id parameter changed to an app.

js/ui/appDisplay.js

index 291e3d63b036bcbecf30c36c597907d38e759036..a4a9587650561e79d3ad5c6b21b27b7060da51c4 100644 (file)
@@ -333,7 +333,7 @@ AppSearchProvider.prototype = {
         return this._appSys.subsearch(previousResults, terms);
     },
 
-    activateResult: function(id, params) {
+    activateResult: function(app, params) {
         params = Params.parse(params, { workspace: -1,
                                         timestamp: 0 });
 
@@ -341,7 +341,6 @@ AppSearchProvider.prototype = {
         let modifiers = event ? Shell.get_event_state(event) : 0;
         let openNewWindow = modifiers & Clutter.ModifierType.CONTROL_MASK;
 
-        let app = this._appSys.lookup_app(id);
         if (openNewWindow)
             app.open_new_window(workspace);
         else